lib/repo: Don't copy xattrs when manipulating the GPG keyring
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 7 Jun 2017 02:51:00 +0000 (22:51 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 7 Jun 2017 13:43:51 +0000 (13:43 +0000)
commit25696b3fb064bd933d1e05e8175e6d95891fa2c0
tree675c042f75106d04bd337e54c09282af347985c4
parente18cacb06e9d4381094a68001f6b6f68509be8e9
lib/repo: Don't copy xattrs when manipulating the GPG keyring

Copying xattrs when manipulating the GPG keyring for a repository
causes errors when the underlying filesystem doesn't support writing
xattrs - overlayfs is a common example. It also causes the selinux
attributes of the keyring files to be copied from the temporary
location instead of properly inherited from the destination directory
(ending up, for example, as unconfined_u:object_r:user_tmp_t:s0, rather
than unconfined_u:object_r:data_home_t:s0)

Closes: #910
Approved by: cgwalters
src/libostree/ostree-repo.c